import { request } from "../request";

export const apiAddFlowGroupPost = (data:any)=>{
    return request({
        method:"POST",
        url:"/api/wfGroup/addFlowGroup",
        data
    })
}

export const apiUpdateFlowGroupPost = (data:any)=>{
    return request({
        method:"POST",
        url:"/api/wfGroup/updateFlowGroup",
        data
    })
}

export const apiDeleteFlowGroupPost = (data:any)=>{
    return request({
        method:"POST",
        url:"/api/wfGroup/deleteFlowGroup",
        data
    })
}

// 只获取分组列表
export const apiGetFlowGroupList = ()=>{
    return request({
        method:"GET",
        url:"/api/wfGroup/groupList"
    })
}

// 获取分组和相关表单
export const apiGetGroupWfFlowFormList = ()=>{
    return request({
        url:"/api/wfGroup/treeList",
        method:"GET",
    })
}


